package com.sisyphus.simple.adapters;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.sisyphus.simple.R;
import com.sisyphus.simple.data.network.model.Post;

import androidx.annotation.NonNull;

public class PostListAdapter extends BaseQuickAdapter<Post, BaseViewHolder> {

    public PostListAdapter() {
        super(R.layout.item_post_list);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder holder, Post post) {
        holder.setText(R.id.text, post.content);
    }

}
